<?php
namespace Home\Model;
//物品基础属性
class UserBase extends Base{
    protected $redis;
    protected $user;
    protected $username ;
    protected $city;
    public function __construct($user, $class='users'){
        //数据集
        parent::__construct($user,$class.':'.$user->username);
    }
} 